package app.server.project.main.service.dto.cms;

import app.server.project.main.service.db.entity.cfg.RechargeCfgEntity;
import cn.hutool.core.bean.BeanUtil;
import lombok.Data;

@Data
public class BuyEnergyCfgDto {


    private int id;


    /**
     * 消耗数量
     */
    private long consumeNum;


    private long param;

    public static BuyEnergyCfgDto of(RechargeCfgEntity energyCfgEntity) {
        var ret = new BuyEnergyCfgDto();
        BeanUtil.copyProperties(energyCfgEntity, ret, true);
        return ret;
    }
}
